<html>
    <?php
        include_once './include/head.php';
        require_once 'mensa_reader.php';
    ?>   
    <body>        
        <div data-role="page" id="mensa">
            <div data-role="header" data-position="inline">
                <div class="ui-grid-a">
                    <div class="ui-block-a">
                <div id="header">
                    <a href="index-mobile.php" data-ajax="false"><img src="themes/images/siegel.png" width="71px" height="74px" alt="TU Siegel"></a>
                </div>
                    </div>
                    <div class="ui-block-b">
                <div id="crumb">
                    <img src="themes/images/48-fork-and-knife@2xw.png" height="36px" width="48px">
                </div>
                    </div>
                </div>
            <div style="clear: both"></div>
                <div data-role="navbar">
                    <ul>
                        <li><a data-show="mensa1" href="#" class="ui-btn-active">Mensa 1</a></li>
                        <li><a data-show="mensa2" href="#" data-ajax="false">Mensa 2</a></li>
                        <li><a data-show="mensahbk" href="#" data-ajax="false">Mensa HBK</a></li>
                    </ul>
                </div>
            </div>
            <div data-role="content" data-theme="b">
                <div class="mensa1" data-role="collapsible-set" data-theme="a">
                    <?php 
                        gen_mensaplan('http://www.trivalg.de/mensa/kath/index.xml');
                    ?>
                </div>
                <div class="mensa2" data-role="collapsible-set" data-theme="a" style="display: none">
                    <?php 
                        gen_mensaplan('http://www.trivalg.de/mensa/beeth/index.xml');
                    ?>
                </div>
                <div class="mensahbk" data-role="collapsible-set" data-theme="a" style="display: none">
                    <?php 
                        gen_mensaplan('http://www.trivalg.de/mensa/hbk/index.xml');
                    ?>
                </div>
            </div>
        </div>
    </body>
</html>

